package org.example.myleet.p665;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(solution.checkPossibility(new int[]{4}));
        Assert.isTrue(solution.checkPossibility(new int[]{4,2,3}));
        Assert.isTrue(!solution.checkPossibility(new int[]{4,2,1}));
        Assert.isTrue(!solution.checkPossibility(new int[]{1,1,2,3,4,3,5,6,7,6}));
        Assert.isTrue(!solution.checkPossibility(new int[]{3,4,2,3}));
        Assert.isTrue(solution.checkPossibility(new int[]{-1,4,2,3}));
        Assert.isTrue(solution.checkPossibility(new int[]{1,4,1,2}));
    }
}
